package com.yehuishou.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.yehuishou.pojo.Brand;
import com.yehuishou.pojo.Classify;
import com.yehuishou.pojo.ImageFile;
import com.yehuishou.pojo.Item_order;
import com.yehuishou.pojo.Models;
import com.yehuishou.pojo.Oditem;
import com.yehuishou.pojo.Order;
import com.yehuishou.pojo.QueryVO;
import com.yehuishou.pojo.ShoppingTrolley;

/**
 * 用户订单业务层
 * @author VULCAN
 *
 */
public interface SaleOrderService {

	//查询用户订单
	PageInfo<QueryVO> findUserOrder(Integer pageNum, Integer pageSize, QueryVO vo);
	//删除用户订单
	int deleteUser(QueryVO vo);
	//通过ID查询详情
	List<Oditem> finditems(String oid);
	//通过ID 查询单个订单详情 用于修改
	Oditem FindDetailsById(Oditem oditem);
	//出售订单详情修改
	Integer UpdateDetails(Oditem oditem);
	Integer UpdateConfiguration(Oditem oditem);
	//删除订单详情
	Integer detailsDelete(Integer i_id);
	//查询所有商品分类
	List<Classify> selclassify();
	//查询所有品牌
	List<Brand> selbrand();
	//查询所有商品型号
	List<Models> selmodel();
	//添加购物车
	int addOrderCat(ShoppingTrolley shopt);
	//添加订单
	int addOrder(Order order);
	//生成订单中间表
	int addOrderItem(Item_order item_order);
	//删除购物车数据
	int deleShoppingTrolley(Integer stidd);
	//查询订单详情
	List<Order> selpayorder(String oid);
	//查询个人所有订单
	Map<String, Object> selallorder(Integer uid, Integer pageNum, Integer pageSize, Integer ul);
	//删除订单
	int deleorder(Item_order item_order);
	//删除订单商品中间表
	int deleitem_order(Item_order item_order);
	//确定金额
	int assess(Order order);
	//删除回收中间表
	int delebackorder(Item_order item_order);
	//删除租赁中间表
	int deleleaseorder(Item_order item_order);
	//删除竞价中间表
	int delebiddingorder(Item_order item_order);
	//支付完成出售商品库存减少
	void stocknumdown(Order order);
	void kdeit(Order ord);
	Order findByO(String oid);
	int deleenterpriseBacks(Integer id);
	
	
}
